package com.study.enumtest;

public enum Toy {
    SOLDIER {
        @Override
        public void execute() {
            System.out.println("I'm a doll.");
        }
    },
    DOLL {
        @Override
        public void execute() {
            System.out.println("I'm a doll.");
        }
    };

    // template method
    public abstract void execute();
}
